package com.box.inheritance;

public class ExtendsTest {

    public static void main(String[] args) {
        Person person = new Person();
        person.setName("Tom");
        person.eat();
        System.out.println(person.getName());

        Student student = new Student();
        student.setName("Lily");
        student.eat();
        System.out.println(student.getName());
    }
}
